package work.jame.blog.mapper;

import org.apache.ibatis.annotations.Param;
import work.jame.blog.pojo.UserCollectGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import work.jame.blog.pojo.vo.ArticleCollectGroupVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Jame
 * @since 2023-05-18
 */
public interface UserCollectGroupMapper extends BaseMapper<UserCollectGroup> {


    /**
     * 获取收藏组
     * @param articleId 文章id
     * @return
     */
    List<ArticleCollectGroupVO> getCurrentUserCollectGroups(@Param("archiveId")Long articleId,
                                                            @Param("userId")Long userId);

}
